import { Frame } from './frame'

export class Sprite {
  matteKey?: string
  imageKey?: string
  frames: any[]
  
  constructor(props: any) {
    this.matteKey = props.matteKey
    this.imageKey = props.imageKey
    this.frames = props.frames?.map((v: any) => new Frame(v)) ?? []
  }
}